using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using Shpm.App.Input.Bean;

/// <summary>
/// Summary description for MemorandumForm
/// </summary>
namespace Shpm.App.Commons.Utils
{
    public class MemorandumUtils
    {
        public MemorandumUtils()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        [Ajax.AjaxMethod()]
        public IList ServerSideAdd(string firstNumber, string secondNumber)
        {
            /*  HttpRequest req = HttpContext.Current.Request;

              byte[] b = new byte[req.TotalBytes];
              req.InputStream.Position = 0;
              req.InputStream.Read(b, 0, b.Length);
     
              string r = System.Text.Encoding.UTF8.GetString(b);

              */
            IList list = new ArrayList();

            SaleProcBean bean = new SaleProcBean();
            bean.ApartmentNo = secondNumber;
            bean.SaleProcId = 101;

            list.Add(bean);
            bean = new SaleProcBean();
            bean.ApartmentNo = secondNumber.Substring(0, 9) + "2";
            list.Add(bean);


            return list;
        }
    }
}